package structureType.composite.employ.impl;

import java.util.ArrayList;

import structureType.composite.employ.IEmployer;

public class ProjectManagerImpl extends IEmployer {

    public ProjectManagerImpl(String name) {
        setName(name);
        employers = new ArrayList<IEmployer>();
    }

    @Override
    public void add(IEmployer employer) {
        employers.add(employer);
    }

    @Override
    public void delete(IEmployer employer) {
        employers.remove(employer);
    }

    @Override
    public void employerInfo() {
        for (IEmployer employer : employers) {
            employer.employerInfo();
        }
    }
}